//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __ELASTOS__ELADBGAGENT_ELACXT_H__
#define __ELASTOS__ELADBGAGENT_ELACXT_H__

#ifdef _ELADBGAGENT

#define BREAKPOINT_TYPE UInt32
//#define BREAK_INSTRUCTION 0xe7fddefe

//arm context
typedef struct _ELADBGCXTINFO
{
    UInt32   R0, R1, R2, R3, R4, R5, R6, R7;
    UInt32   R8, R9, R10, R11, R12;
    UInt32   SP, LR, PC, CPSR;
} ELADBGCXTINFO, *PELADBGCXTINFO;

EXTERN Void CxtinfoFromInterruptContext(PELADBGCXTINFO pCxt,
    InterruptContext *pContext);
EXTERN Void CxtinfoToInterruptContext(PELADBGCXTINFO pCxt,
    InterruptContext *pContext);

#endif //_ELADBGAGENT

#endif //__ELASTOS__ELADBGAGENT_ELACXT_H__
